package com.bestcem.xm.qdes.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_qdes_quota")
public class QdesQuota extends BaseEntity2 {

    @TableId(value = "id")
    private String id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 问卷id
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 入口类型
     */
    @TableField(value = "quota_type")
    private Integer quotaType;

    /**
     * 配额条件ID集合，交叉配额只有一个
     */
    @TableField(value = "quota_cond_list")
    private String quotaCondList;

    //适配MapStruct弄了个冗余字段
    @TableField(exist = false)
    @JsonIgnore
    private List<String> quotaCondListList;

    /**
     * 交叉配额可选题目
     */
    @TableField(value = "ava_qgid_list")
    private String avaQgidList;

    /**
     * 交叉配额的行1
     */
    @TableField(value = "row1")
    private String row1;

    /**
     * 交叉配额的行2
     */
    @TableField(value = "row2")
    private String row2;

    /**
     * 交叉配额列1
     */
    @TableField(value = "col1")
    private String col1;

    /**
     * 交叉配额的列2
     */
    @TableField(value = "col2")
    private String col2;
}
